/**
 * 
 */
package com.obradovicnjegovan.webprodavnica.pages.admin;

import java.text.DecimalFormat;
import java.util.List;

import org.apache.tapestry5.ioc.annotations.Inject;

import com.obradovicnjegovan.webprodavnica.controller.ControllerAL;
import com.obradovicnjegovan.webprodavnica.entities.Narudzbenica;
import com.obradovicnjegovan.webprodavnica.entities.StatusNarudzbenice;

/**
 * @author njegovan
 *
 */
public class Index {
	@Inject
	private ControllerAL controllerAL;
	
	public int getUkupanBrojKategorija(){
		return controllerAL.pronadjiSveKategorije().size();
	}
	
	public int getUkupanBrojProizvoda(){
		return controllerAL.pronadjiSveProizvode().size();
	}
	
	public int getUkupanBrojNarudzbina(){
		return controllerAL.pronadjiSveNarudzbenice().size();
	}
	
	public int getUkupanBrojKlijenata(){
		return controllerAL.pronadjiSveKlijente().size();
	}
	
	public String getUkupanPrihod(){
		return controllerAL.getUkupanPrihod();
	}
	
	public String getPlaceneNarudzbine(){
		return controllerAL.getSumaPlacenihNarudzbina();
	}
	
	public String getNarudzbineNaCekanju(){
		return controllerAL.getSumaNarudzbinaNaCekanju();
	}
	
	public int getUkupanBrojOPa(){
		return controllerAL.pronadjiSveOdabraneProizvode().size();
	}
}